.class public Lnet/tsapps/topdeals/views/TdDealList;
.super Landroid/widget/ListView;


# instance fields
.field private a:Ljava/util/ArrayList;

.field private b:Ljava/lang/String;

.field private c:Landroid/view/View$OnClickListener;

.field private d:Lnet/tsapps/topdeals/a/i;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/ArrayList;JLandroid/view/View$OnClickListener;)V
    .locals 2

    invoke-direct {p0, p1}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    iput-object p3, p0, Lnet/tsapps/topdeals/views/TdDealList;->a:Ljava/util/ArrayList;

    iput-object p2, p0, Lnet/tsapps/topdeals/views/TdDealList;->b:Ljava/lang/String;

    iput-object p6, p0, Lnet/tsapps/topdeals/views/TdDealList;->c:Landroid/view/View$OnClickListener;

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->b:Ljava/lang/String;

    const-string v1, "fav"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Lnet/tsapps/topdeals/a/k;

    iget-object v1, p0, Lnet/tsapps/topdeals/views/TdDealList;->a:Ljava/util/ArrayList;

    invoke-direct {v0, p1, v1, p4, p5}, Lnet/tsapps/topdeals/a/k;-><init>(Landroid/content/Context;Ljava/util/List;J)V

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->d:Lnet/tsapps/topdeals/a/i;

    :goto_0
    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->d:Lnet/tsapps/topdeals/a/i;

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/views/TdDealList;->setAdapter(Landroid/widget/ListAdapter;)V

    new-instance v0, Lnet/tsapps/topdeals/views/f;

    invoke-direct {v0, p0}, Lnet/tsapps/topdeals/views/f;-><init>(Lnet/tsapps/topdeals/views/TdDealList;)V

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/views/TdDealList;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->d:Lnet/tsapps/topdeals/a/i;

    iget-object v0, v0, Lnet/tsapps/topdeals/a/i;->a:Lnet/tsapps/topdeals/c/f;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/c/f;->a()V

    return-void

    :cond_0
    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->b:Ljava/lang/String;

    const-string v1, "local"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    new-instance v0, Lnet/tsapps/topdeals/a/a;

    iget-object v1, p0, Lnet/tsapps/topdeals/views/TdDealList;->a:Ljava/util/ArrayList;

    invoke-direct {v0, p1, v1, p4, p5}, Lnet/tsapps/topdeals/a/a;-><init>(Landroid/content/Context;Ljava/util/List;J)V

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->d:Lnet/tsapps/topdeals/a/i;

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->b:Ljava/lang/String;

    const-string v1, "live"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    new-instance v0, Lnet/tsapps/topdeals/a/g;

    iget-object v1, p0, Lnet/tsapps/topdeals/views/TdDealList;->a:Ljava/util/ArrayList;

    invoke-direct {v0, p1, v1, p4, p5}, Lnet/tsapps/topdeals/a/g;-><init>(Landroid/content/Context;Ljava/util/List;J)V

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->d:Lnet/tsapps/topdeals/a/i;

    goto :goto_0

    :cond_2
    new-instance v0, Lnet/tsapps/topdeals/a/e;

    iget-object v1, p0, Lnet/tsapps/topdeals/views/TdDealList;->a:Ljava/util/ArrayList;

    invoke-direct {v0, p1, v1, p4, p5}, Lnet/tsapps/topdeals/a/e;-><init>(Landroid/content/Context;Ljava/util/List;J)V

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->d:Lnet/tsapps/topdeals/a/i;

    const v0, 0x7f030013

    const/4 v1, 0x0

    invoke-static {p1, v0, v1}, Lnet/tsapps/topdeals/views/TdDealList;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/views/TdDealList;->addFooterView(Landroid/view/View;)V

    goto :goto_0
.end method

.method static synthetic a(Lnet/tsapps/topdeals/views/TdDealList;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->a:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic b(Lnet/tsapps/topdeals/views/TdDealList;)Landroid/view/View$OnClickListener;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->c:Landroid/view/View$OnClickListener;

    return-object v0
.end method

.method static synthetic c(Lnet/tsapps/topdeals/views/TdDealList;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->b:Ljava/lang/String;

    return-object v0
.end method


# virtual methods
.method public getAdapter()Landroid/widget/ListAdapter;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TdDealList;->d:Lnet/tsapps/topdeals/a/i;

    return-object v0
.end method
